<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    {include file="common/common"}
    <title>企业列表</title>
</head>
<body>
    <div class="container">
        <table class="table table-bordered border-primary">
            <thead>
                <tr>
                    <td>ID</td>
                    <td>名称</td>
                    <td>地址</td>
                    <td>电话</td>
                    <td>官网</td>
                    <td>描述</td>
                    <td>操作</td>
                </tr>
            </thead>
            <tbody>
            {foreach $companyRes as  $key=>$value}
            <tr>
                <td>{$value['id']}</td>
                <td>{$value['name']}</td>
                <td>{$value['addr']}</td>
                <td>{$value['phone']}</td>
                <td>{$value['company_url']}</td>
                <td>{$value['description']}</td>
                <td><a href="{:url('edit',array('id'=>$value['id']))}" >编辑</a>&nbsp;&nbsp;<a href="{:url('del',array('id'=>$value['id']))}">删除</a></td>
            </tr>
            {/foreach}            
            </tbody>
        </table>
        <div style="padding-top:10px;text-align:right;">
           {$companyRes|raw}
        </div>
    </div>
</body>
</html>